var html = document.getElementsByTagName('html')[0];
window.onresize = init;
function init() {
	var hw = html.offsetWidth;
	var n = hw > 640 ? 24 : 24 / 640 * hw;
	html.style.fontSize = n + "px";
}init();